/*
 * ...
 */

package com.ruoyi.project.good.service;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.project.good.entity.Goods;
import com.ruoyi.project.good.entity.GoodsDetails;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 挺好的 2023年09月21日 下午 14:19
 */
public interface IGoodsService {


    public static void main (String[] args) {
        List<Goods> list = new ArrayList <>();
        Goods goods1=new Goods();
        goods1.setGoodsId(1);
        goods1.setGoodsName("现货 找零工春夏季短T工装");
        goods1.setGoodStatus(0);

        List<String> carouseList = new ArrayList <>();
        carouseList.add("https://images.linglinggong.net/good/2.png");
        carouseList.add("https://images.linglinggong.net/good/3.png");
        carouseList.add("https://images.linglinggong.net/good/4.png");
        carouseList.add("https://images.linglinggong.net/good/5.png");
        goods1.setGoodsCarouselUrl(carouseList);

        List<String> goodsDetailList = new ArrayList <>();
        goodsDetailList.add("https://images.linglinggong.net/good/detail.jpg");
        goods1.setGoodsDetailsUrl(goodsDetailList);

        List<GoodsDetails> details=new ArrayList <>();
        GoodsDetails details1=new GoodsDetails();
        details1.setStandardsId(1);
        details1.setStandardsName("S 85-100斤 2件");
        details1.setInventoryCount(100);
        details1.setGoodPrice(new BigDecimal(59));
        details1.setGoodDiscountPrice(new BigDecimal(29.9));
        details1.setGoodDiscountEndDate("2023-09-20 23:59:59");
        details1.setGoodsDetailStatus(0);

        GoodsDetails details2=new GoodsDetails();
        details2.setStandardsId(1);
        details2.setStandardsName("M 100-110斤 2件");
        details2.setInventoryCount(100);
        details2.setGoodPrice(new BigDecimal(59));
        details2.setGoodDiscountPrice(new BigDecimal(29.9));
        details2.setGoodDiscountEndDate("2023-09-20 23:59:59");
        details2.setGoodsDetailStatus(0);

        GoodsDetails details3=new GoodsDetails();
        details3.setStandardsId(1);
        details3.setStandardsName("L 110-120斤 2件");
        details3.setInventoryCount(100);
        details3.setGoodPrice(new BigDecimal(59));
        details3.setGoodDiscountPrice(new BigDecimal(29.9));
        details3.setGoodDiscountEndDate("2023-09-20 23:59:59");
        details3.setGoodsDetailStatus(0);

        GoodsDetails details4=new GoodsDetails();
        details4.setStandardsId(1);
        details4.setStandardsName("XL 120-135斤 2件");
        details4.setInventoryCount(100);
        details4.setGoodPrice(new BigDecimal(59));
        details4.setGoodDiscountPrice(new BigDecimal(29.9));
        details4.setGoodDiscountEndDate("2023-09-20 23:59:59");
        details4.setGoodsDetailStatus(0);

        GoodsDetails details5=new GoodsDetails();
        details5.setStandardsId(1);
        details5.setStandardsName("XXL 135-150斤 2件");
        details5.setInventoryCount(100);
        details5.setGoodPrice(new BigDecimal(59));
        details5.setGoodDiscountPrice(new BigDecimal(29.9));
        details5.setGoodDiscountEndDate("2023-09-20 23:59:59");
        details5.setGoodsDetailStatus(0);

        GoodsDetails details6=new GoodsDetails();
        details6.setStandardsId(1);
        details6.setStandardsName("XXXL 150-175斤 2件");
        details6.setInventoryCount(100);
        details6.setGoodPrice(new BigDecimal(59));
        details6.setGoodDiscountPrice(new BigDecimal(29.9));
        details6.setGoodDiscountEndDate("2023-09-20 23:59:59");
        details6.setGoodsDetailStatus(0);
        details.add(details1);
        details.add(details2);
        details.add(details3);
        details.add(details4);
        details.add(details5);
        details.add(details6);
        goods1.setDetailsList(details);
        list.add(goods1);

        System.out.println(JSONObject.toJSONString(list));
    }

}
